package com.caht.mapper;

import com.caht.DTO.inertlikestateUserDTO;
import com.caht.VO.PostsandUserVO;
import com.caht.entity.Posts;
import com.caht.entity.likestate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Mapper
public interface PostsMapper{
    /**
     * 添加文章列表
     * @param posts
     */
    void addposts(Posts posts);

    /**
     * 查询文章列表
     * @param
     * @return
     */
    List<PostsandUserVO> ListPostsByID();

    /**
     * 点赞
     * @param inertlikestateUserDTO
     */
    void UpdataLike(inertlikestateUserDTO inertlikestateUserDTO);

}
